package org.framework.define.bean.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the tbl_user_pay_order database table.
 * 
 */
@Entity
@Table(name="tbl_user_pay_order")
public class TblUserPayOrder implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="order_id", unique=true, nullable=false, length=50)
	private String orderId;

	@Column(name="bank_order_id", length=50)
	private String bankOrderId;

	@Column(name="bank_order_state")
	private byte bankOrderState;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time", nullable=false)
	private Date createTime;

	@Column(name="order_amount", precision=15, scale=2)
	private BigDecimal orderAmount;

	@Column(name="order_state", nullable=false)
	private byte orderState;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="pay_time")
	private Date payTime;

	@Column(name="pay_type", nullable=false, length=10)
	private String payType;

	@Column(name="user_id", nullable=false)
	private int userId;

	public TblUserPayOrder() {
	}

	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getBankOrderId() {
		return this.bankOrderId;
	}

	public void setBankOrderId(String bankOrderId) {
		this.bankOrderId = bankOrderId;
	}

	public byte getBankOrderState() {
		return this.bankOrderState;
	}

	public void setBankOrderState(byte bankOrderState) {
		this.bankOrderState = bankOrderState;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public BigDecimal getOrderAmount() {
		return this.orderAmount;
	}

	public void setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
	}

	public byte getOrderState() {
		return this.orderState;
	}

	public void setOrderState(byte orderState) {
		this.orderState = orderState;
	}

	public Date getPayTime() {
		return this.payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public String getPayType() {
		return this.payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

}